<?php $this->_extends('_layouts/blank_layout'); ?>

<?php $this->_block('title'); ?> - 主机管理<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

	<div id="getting-started">
	    <table>
			<tr><th width="5">　</th><th width="80" align="center">主机组名</th><th>管理员</th><th width="80" align="center">操作</th></tr>
			<?php foreach ($group as $s): ?>
			<tr class="<?php if(($countno+1)/2==ceil(($countno+1)/2)){echo 'tw';} ?>"><td align="center"><?php echo $countno++;?></td><td><?php echo $gstr;?></td><td><?php echo $s->users->user_name;?></td><td>
			<a href="<?php echo url('default::default/framework', array('id' => $s->id(),'control' => 'hostmanage','acts' => 'deladmin|search','id' => $s->userid.'|'.$gnum.'|'.$gstr)); ?>" onclick="if(!confirm('确认删除吗？')){return false;}"><img src="images/icons/del.png"></a>
				</td></tr>
			<?php endforeach; ?>
			<tr class="tw">
				<td colspan="7">
					<center>共有 <font color="Red"><?php echo $pager['record_count'];?></font> 条记录,分为 <font color="Red"><?php echo $pager['page_count'];?></font> 页显示,当前第 <font color="Red"><?php echo $pager['current'];?></font>页,每页 <font color="Red"><?php echo $pager['page_size'];?></font> 条<?php echo $pagestr; ?></center>
				</td>
			</tr>
		</table>
	</div>

<?php $this->_endblock('contents'); ?>